package cn.cvs.service.impl;

import cn.cvs.dao.PowerBatteryMapper;
import cn.cvs.pojo.Powerbattery;
import cn.cvs.service.PowerbatteryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PowerbatteryServiceImpl implements PowerbatteryService {

    @Autowired
    private PowerBatteryMapper mapper;

    @Override
    public List<Powerbattery> list() {
        return mapper.list();
    }

    @Override
    public int delete(int id) {
        return mapper.delete(id);
    }

    @Override
    public Powerbattery selectId(int id) {
        return mapper.selectId(id);
    }

    @Override
    public int update(Powerbattery powerbattery) {
        return mapper.update(powerbattery);
    }

}
